package com.yanq.liancar.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.LuckDrawListBean;

import java.util.List;

public class LuckDrawListAdapter extends BaseQuickAdapter<LuckDrawListBean.DataBean.ListBean,BaseViewHolder> {
    public LuckDrawListAdapter(int layoutResId, @Nullable List<LuckDrawListBean.DataBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LuckDrawListBean.DataBean.ListBean item) {
        helper.setText(R.id.tv_title,item.getWinning_explain())
                .setText(R.id.tv_time,item.getWinning_time())
                .addOnClickListener(R.id.tv_See);
    }
}
